/**移动污染 车辆备案and数据应用**/

import request from "@/utils/request"
//运输车辆Excel文件上传导入接口
export function uploadExcel(query, page) {
  return request({
    url: "/transportvehicles/upload",
    method: "post",
    data: query,
    params: page,
  });
}

//运输车辆批量删除接口
export function deleteAllTransportVehicles(query, page) {
  return request({
    url: "/transportvehicles/batchDeletetransportvehicles",
    method: "post",
    data: query,
    params: page,
  });
}
//场内车辆批量删除接口
export function deleteAllOnSite(query, page) {
  return request({
    url: "/onsitevehicles/batchDeleteOnsitevehicles",
    method: "post",
    data: query,
    params: page,
  });
}
//非道路移动机械车辆批量删除接口
export function deleteAllNonRoad(query, page) {
  return request({
    url: "/noMobileMachinery/batchDeleteNoMobileMachinery",
    method: "post",
    data: query,
    params: page,
  });
}
//图片上传接口
export function uploadImg(query, page) {
  return request({
    url: "/loggerItem/upload1",
    method: "post",
    data: query,
    params: page,
  });
}
//运输车辆文件上传接口
export function uploadImage(query,page ){
  return request({
    url:"/ysclxx/upload1",
    method:"post",
    data:query,
    params:page,
  })
}
//运输车辆-根据车牌号查询
export function selectCPH(query,page){
  return request({
    url:"/transportvehicles/insertSelectHaulageVehicles",
    method:"post",
    data:query,
    params:page
  })
}
// 运输车辆 --查询所有(根据id查询)
export function selectAll(query, page) {
  return request({
    url: "/transportvehicles/selecttransportvehicles",
    method: "post",
    data: query,
    params: page,
  });
}

// 运输车辆 --根据条件查询
export function selectQuery(query, page) {
  return request({
    url: "/transportvehicles/fuzzyQueryselecttransportvehicles",
    method: "post",
    data: query,
    params: page,
  });
}

// 运输车辆 --新增接口
export function Add(query, page) {
  return request({
    url: "/transportvehicles/inserttransportvehicles",
    method: "post",
    data: query,
    params: page,
  });
}

// 运输车辆 --修改接口
export function updateData(query, page) {
  return request({
    url: "/transportvehicles/updatetransportvehicles",
    method: "post",
    data: query,
    params: page,
  });
}

// 运输车辆 --删除接口
export function deleteData(query, page) {
  return request({
    url: "/transportvehicles/deletetransportvehicles",
    method: "post",
    data: query,
    params: page,
  });
}
//场内车辆-修改启用禁用状态接口
export function updateOnsiteState(query,page){
  return request({
    url:"/onsitevehicles/updateonsitevehicles",
    method:"post",
    data:query,
    params:page
  })
}
//场内车辆-导入接口
export function uploadOnsite(query,page){
  return request({
    url:"/onsitevehicles/upload",
    method:"post",
    data:query,
    params:page
  })
}
//场内车辆 --查询全部接口(弃)
export function selectOnsiteAll(query, page) {
  return request({
    url: "/onsitevehicles/selectonsitevehicles",
    method: "post",
    data: query,
    params: page,
  });
}

//场内车辆 --根据条件查询
export function selectOnsiteQuery(query, page) {
  return request({
    url: "/onsitevehicles/fuzzyQueryselectonsitevehicles",
    method: "post",
    data: query,
    params: page,
  });
}

//场内车辆 --新增接口
export function insertOnsite(query, page) {
  return request({
    url: "/onsitevehicles/insertonsitevehicles",
    method: "post",
    data: query,
    params: page,
  });
}

//场内车辆 --修改接口
export function updateOnsite(query, page) {
  return request({
    url: "/onsitevehicles/updateonsitevehicles",
    method: "post",
    data: query,
    params: page,
  });
}

//场内车辆 --删除接口
export function deleteOnsite(query, page) {
  return request({
    url: "/onsitevehicles/deleteonsitevehicles",
    method: "post",
    data: query,
    params: page,
  });
}
//非道路移动机械 --导入接口
export function uploadRoad(query,page){
  return request({
    url:"/noMobileMachinery/upload",
    method:"post",
    data:query,
    params:page
  })
}
//非道路移动机械 --修改禁用停用状态接口
export function updateStateRoad(query,page){
  return request({
    url:"/noMobileMachinery/updatenoMobileMachinery",
    method:"post",
    data:query,
    params:page
  })
}
//非道路移动机械 --查询所有接口(弃)
export function selectAllRoad(query, page) {
  return request({
    url: "/noMobileMachinery/selectnoMobileMachinery",
    method: "post",
    data: query,
    params: page,
  });
}

//非道路移动机械 --查询接口
export function selectQueryRoad(query, page) {
  return request({
    url: "/noMobileMachinery/fuzzyQueryselectnoMobileMachinery",
    method: "post",
    data: query,
    params: page,
  });
}

//非道路移动机械 --新增接口
export function insertRoad(query, page) {
  return request({
    url: "/noMobileMachinery/insertnoMobileMachinery",
    method: "post",
    data: query,
    params: page,
  });
}

//非道路移动机械 --删除接口
export function deleteRoad(query, page) {
  return request({
    url: "/noMobileMachinery/deletenoMobileMachinery",
    method: "post",
    data: query,
    params: page,
  });
}

//非道路移动机械 --修改接口
export function updateRoad(query, page) {
  return request({
    url: "/noMobileMachinery/updatenoMobileMachinery",
    method: "post",
    data: query,
    params: page,
  });
}

/**移动污染 数据应用**/
//车辆备案查询 -- 查询明细列表 （传cl_cph）  现车辆进出台账查询接口使用
export function selectVehicleFilingDetailed (query,page){
  return request({
    url:"/vehicleRegistration/selectvehicleRegistration",
    method:"post",
    data:query,
    params:page
  })
}
//车辆备案查询 -- 查询备案车辆列表（传cl_cph ）
export function  selectVehicleFilingData(query,page){
  return request({
    url:"/recordedVehicles/fuzzyQueryselectrecordedVehicles",
    method: "post",
    data: query,
    params: page,
  })
}
//车辆备案查询 --查询全部
export function selectAllFiling(query, page) {
  return request({
    url: "/recordedVehicles/selectrecordedVehicles",
    method: "post",
    data: query,
    params: page,
  });
}
//车辆备案查询 --根据条件查询
export function selectQueryFiling(query, page) {
  return request({
    url: "/recordedVehicles/fuzzyQueryselectrecordedVehicles",
    method: "post",
    data: query,
    params: page,
  });
}
//车辆进出台账 --查询所有接口（弃）
export function selectAllBook(query, page) {
  return request({
    url: "/vehicleAccount/selectvehicleAccount",
    method: "post",
    data: query,
    params: page,
  });
}

//车辆进出台账 --根据条件查询
export function selectQueryBook(query, page) {
  return request({
    url: "/vehicleAccount/fuzzyQueryselectvehicleAccount",
    method: "post",
    data: query,
    params: page,
  });
}
//后端执行台账 --根据条件查询and查询全部接口
export function selectQueryExect(query, page) {
  return request({
    url: "/executionaccount/fuzzyQueryselectexecutionaccount",
    method: "post",
    data: query,
    params: page,
  });
}

//车辆进出统计 --查询接口
export function selectExecutionLog(query,page){
  return request({
    // url:"/transportvehicles1/selecttransportvehicles1",
    url:"/transportvehicles/selectStatistics",
    method:"post",
    data:query,
    params:page
  })
}
